package top.kaoshanji.r1ch04a.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import top.kaoshanji.r1ch04a.binarytea.BinaryTeaProperties;

/**
 * 代码清单-r1ch04a-81页a：自动配置类定义
 * @author kaoshanji
 * ^_^
 * create time 2025/5/28 17:47
 */
@Configuration // 这是一个配置类
@EnableConfigurationProperties(BinaryTeaProperties.class) // 导入属性配置类
@ConditionalOnProperty(name = "binarytea.ready", havingValue = "true") // 生效条件
public class ShopConfiguration {
}
